package com.main.usermanagement.domain.user.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.main.usermanagement.domain.user.aggregate.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<User> findByPhone(@Param("phone") String phone);

    boolean existsByTransactionId(@Param("transactionId") String transactionId);
}
